import Vue from "vue";
import Vuex from "vuex";
import { shop } from "./shop/index.js";
Vue.use(Vuex);
const store = new Vuex.Store({
  modules: {
    shop,
  },
  state: {
    wei: "第一次打包小程序",
    get: "测试get",
    add: 0,
  },
  getters: {
    get1: function (state) {
      return state.get;
    },
  },
  mutations: {
    add1: function (state, data) {
      state.add = state.add + 1;
    },
  },
  actions: {},
});
export default store;
